import {CompDefaultWidth, ComponentType, PROP_TYPES} from "../Config";

export default {
    "name": {
        "zh-CN": "树+表格",
        "en-US": "EditableTreeTable",
    },
    "componentTypes": [ComponentType.TREE_DATA_EDITOR],
    "defaultStyle": {
        width: '100%',
        height: '100%'
    },
    "basic": {
        "colsConf": {
            "required": true,
            "name": "列配置",
            "editType": PROP_TYPES.TABLE_COL,
            "columns": [
                {title: '字段描述', dataIndex: 'remark'},
                {title: '字段名', dataIndex: 'name'},
                {title: '小数精度', dataIndex: 'floatNum'},
                {title: '汇总', dataIndex: 'sum'},
                {title: '正则表达式', dataIndex: 'reg'},
                {title: '表达式', dataIndex: 'expression'},
                {title: '显示格式', dataIndex: 'format'},
                {title: '对齐方式', dataIndex: 'align'},
                {title: '宽度', dataIndex: 'colWidth'},
            ],
            "defaultValue": []
        },
        // "modalConf": {
        //     "required": false,
        //     "name": "弹框配置",
        //     "editType": PROP_TYPES.JSX_MODAL,
        //     "defaultValue": []
        // },
        "rowSelect": {
            "required": false,
            "name": "显示选择框",
            "editType": PROP_TYPES.CHECKBOX,
            "defaultValue": true
        },
        "l": {
            "required": false,
            "name": "冻结列（左）",
            "editType": PROP_TYPES.NUMBER,
            "defaultValue": 1
        },
        "r": {
            "required": false,
            "name": "冻结列（右）",
            "editType": PROP_TYPES.NUMBER,
            "defaultValue": 0
        }
    }
}